package com.hd.el.test.action;

import java.sql.SQLException;
import java.util.List;

import javax.annotation.Resource;

import com.hd.el.test.model.UserBean;
import com.hd.el.test.service.UserService;

public class UserAction {

	@Resource
	private UserService userService;
	
	private List<UserBean> ulist;
	
	private String userId;
	
	public String queryUserInfoById() throws SQLException{
		ulist = userService.queryUserInfoById(userId);
		return "success";
	}
	
	public List<UserBean> getUlist() {
		return ulist;
	}

	public void setUlist(List<UserBean> ulist) {
		this.ulist = ulist;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
}
